# !/usr/bin/env python3
# -*- coding: utf-8 -*-
###----------------------------------------------------1、文件说明----------------------------------------------------###
'''
* 说明：制作一个软闹钟
* 时间：2021-1-30
* 文件：
* 作者：whg
* 备注：
'''
###----------------------------------------------------2、库导入----------------------------------------------------###
import time
from .wtime import WTime
###----------------------------------------------------3、参数配置----------------------------------------------------###
###----------------------------------------------------4、主体程序----------------------------------------------------###

class WAlarmClock(object):
    '''
    软闹钟
    '''
    def __init__(self):
        '''
        闹钟初始化
        '''
        self.clocklist = []

    def AddClock(self, clock):
        self.clocklist.append(clock)

    def Show(self):
        print(self.clocklist)

if __name__ == '__main__':
    print('Start Program...\r\n')
    sclock = WAlarmClock()
    stime = WTime()
    sclock.AddClock(stime.ShowTime())
    sclock.AddClock(stime.GetDelayTime(hours=2))
    sclock.AddClock(stime.GetDelayTime(hours=4))
    sclock.Show()
    print('\nSuccess ...')